package com.h3c.nem.mapstruct;

import com.h3c.nem.dto.TbOfferStudyDTO;
import com.h3c.nem.entity.TbOfferStudy;
import com.h3c.nem.vo.TbOfferStudyVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenyifan
 * @date 2022/6/6 15:17
 */
@Mapper
public interface TbOfferStudyMapstruct {

    TbOfferStudyMapstruct INSTANCE = Mappers.getMapper(TbOfferStudyMapstruct.class);

    /**
     * DTO列表转成实体类列表
     * @param studyDTOS
     * @return
     */
    List<TbOfferStudy> DTOList2EntityList(List<TbOfferStudyDTO> studyDTOS);

    /**
     * DTO列表转成实体类列表
     * @param studies
     * @return
     */
    List<TbOfferStudyVO> entityList2VoList(List<TbOfferStudy> studies);
}
